﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    public class Operator
    {
        //定义字段
        private string _Operator_name;//操作员名字
        private string _Operator_passwd;//操作员密码
        private string _Operator_IC;//操作员的身份证号码
        private string _Operator_tel;//操作员电话哦号码
        private int _Operator_Permissions;//操作员权限

        //定义属性
        public string Operator_name
        {
            get { return _Operator_name; }
            set { _Operator_name = value; }

        }
        public string Operator_passwd
        {
            get { return _Operator_passwd; }
            set { _Operator_passwd = value; }

        }
        public string Operator_IC
        {
            get { return _Operator_IC; }
            set { _Operator_IC = value; }

        }
        public string Operator_tel
        {
            get { return _Operator_tel; }
            set { _Operator_tel = value; }
        }
        public int Operator_Permissions
        {
            get { return _Operator_Permissions; }
            set { _Operator_Permissions = value; }
        }

        //构造方法1,用于验证用户登录的传值
        public Operator(string operator_name,string operator_passwd,string operator_ic)
        {
            this.Operator_name = operator_name;
            this.Operator_passwd = operator_passwd;
            this.Operator_IC = operator_ic;
        
        }
        //构造方法2,用于用户注册的传值
        public Operator(string operator_name, string operator_passwd, string operator_ic, string operator_tel, int operator_Permissions)
        {
            this.Operator_name = operator_name;
            this.Operator_passwd = operator_passwd;
            this.Operator_IC = operator_ic;
            this.Operator_tel = operator_tel;
            this.Operator_Permissions = operator_Permissions;

        }
    }
}
